package com.cc.secondKill.pojo;

import java.io.Serializable;
import java.util.Date;

public class User implements Serializable{
    private Integer id;

    private String name;

    private String phone;

    private Date time;

    public User(Integer id, String name, String phone, Date time) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.time = time;
    }

    public User() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}